username=`whoami`
mybox_path=/home/$username/mybox
read -p 'data path:' data_path


# 1 prepare mybox.source.base
mybox_source=$mybox_path/mybox.source
echo 'export MYBOX=$mybox_path'                                               > $mybox_source
echo 'export DATAPATH=$data_path'                                            >> $mybox_source
echo ''                                                                      >> $mybox_source
cat  $mybox_path/env/mybox.source.base                                       >> $mybox_source



# 2 prepare mybox command
echo "# MYBOX ENV" >> ~/.bashrc
echo "alias mybox='source $mybox_path/mybox.source'" >> ~/.bashrc



# 3 prepare suc command
echo "echo: alias suc='su - carrot' >> /root/.bashrc"



echo "finish"